package com.jm.framework.common.exception;

import com.jm.framework.common.result.IResultCode;
import lombok.Getter;

/**
 * tide
 * <p>
 * 通用结果返回枚举
 * <p>
 * author: jiangjianmin
 * <p>
 * create: 2024-08-20 11:04
 **/
@Getter
public enum BaseResultCodeEnum implements IResultCode {

    SUCCESS("SUCCESS", "操作成功"),

    BIZ_ERROR("BIZ_ERROR", "业务处理异常"),

    SYSTEM_ERROR("SYSTEM_ERROR", "系统繁忙，请稍后再试！"),

    PARAMS_ERROR("PARAMS_ERROR", "参数异常"),
    ;


    private String code;

    private String message;

    BaseResultCodeEnum(String code, String message) {
        this.code = code;
        this.message = message;
    }
}
